﻿<%@ Control language="C#" Inherits="SmallAdvert.ViewSmallAdvert" CodeFile="ViewSmallAdvert.ascx.cs" AutoEventWireup="true"%>
<%@ Register Src="../../controls/tm_guestInfo.ascx" TagName="tm_guestInfo" TagPrefix="uc5" %>
<%@ Register Src="../../controls/tm_addSmallAdvert.ascx" TagName="tm_addSmallAdvert"
    TagPrefix="uc4" %>
<%@ Register Src="../../controls/tm_smallAdvList.ascx" TagName="tm_smallAdvList"
    TagPrefix="uc3" %>
<%@ Register Src="../../controls/texteditor.ascx" TagName="texteditor" TagPrefix="uc1" %>
<%@ Register TagPrefix="dnn" TagName="Audit" Src="~/controls/ModuleAuditControl.ascx" %>
<%@ Register Assembly="FreeTextBox" Namespace="FreeTextBoxControls" TagPrefix="FTB" %>
<center>
    <asp:Panel ID="pnlButton" runat="server" Width="100%" HorizontalAlign="Right">
        <asp:LinkButton ID="btnAddNewLink" runat="server" OnClick="btnAddNewLink_Click">Thêm mới</asp:LinkButton>&nbsp;
        <asp:LinkButton ID="btnSearchLink" runat="server" OnClick="btnSearchLink_Click">Tìm kiếm</asp:LinkButton>
        <hr class="table" />
        <asp:Label ID="lblSmallAdvState" runat="server" Visible="False"></asp:Label></asp:Panel>
</center>
<center>
    <uc4:tm_addSmallAdvert ID="myAddSmallAdvert" runat="server" />
</center>
<center>
</center>
<center>
<asp:Panel ID="pnlViewSmallAds" runat="server" Width="100%" Visible="False"><TABLE class="table" width="100%"><TBODY><TR><TD width="15%"><asp:Label id="Label12" runat="server" Text="Chủ đề :" CssClass="titletext3"></asp:Label> </TD><TD><asp:Label id="lblSubject" runat="server" CssClass="titletext3" Font-Bold="False"></asp:Label> <asp:Label id="lblViewAdverId" runat="server" Visible="False" CssClass="titletext3"></asp:Label></TD></TR><TR><TD><asp:Label id="Label13" runat="server" Text="Nội dung :" CssClass="titletext3"></asp:Label></TD><TD><asp:Label id="lblContents" runat="server"></asp:Label></TD></TR><TR><TD><asp:Label id="Label2" runat="server" Text="Ngày đăng :" CssClass="titletext3"></asp:Label></TD><TD><asp:Label id="lblOpenDate" runat="server"></asp:Label></TD></TR><TR><TD><asp:Label id="Label3" runat="server" Text="Người đăng :" CssClass="titletext3"></asp:Label></TD><TD style="WIDTH: 185px"><asp:Label id="lblFullName" runat="server"></asp:Label></TD></TR><TR><TD><asp:Label id="Label5" runat="server" Text="Địa chỉ :" CssClass="titletext3"></asp:Label></TD><TD><asp:Label id="lblAddress1" runat="server"></asp:Label></TD></TR><TR>
<TD><asp:Label id="Label4" runat="server" Text="Điện thoại :" CssClass="titletext3"></asp:Label></TD>
<TD><asp:Label id="lblTelephone" runat="server"></asp:Label></TD></TR><TR><TD colspan="2">
    </TD></TR>
    <tr>
        <td>
        </td>
        <td align="left" valign="middle">
            <asp:Button id="btnEdit" onclick="btnEdit_Click" runat="server" Text="Chỉnh sửa" CssClass="btn" Width="116px"></asp:Button><asp:Button id="btnReportToAdmin" onclick="btnReportToAdmin_Click" runat="server" Text="Thông báo nội dung xấu" CssClass="btn" Visible="False"></asp:Button><asp:Button id="btnAddToMySpace" onclick="btnAddToMySpace_Click" runat="server" Visible="False" Text="Thêm vào kho" CssClass="btn"></asp:Button></td>
    </tr>
    <TR><TD align=center colSpan=3>
    &nbsp;</TD></TR></TBODY></TABLE><asp:Panel id="pnlReportToAdmin" Width="100%" runat="server" Visible="false">
        <table width="100%" border="0" class="table">
            <tr>
                <td colspan ="2" align="center">
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="tbxReportContent"
                        Display="None" ErrorMessage="Xin vui lòng nhập nội dung thông báo !" ValidationGroup="a"></asp:RequiredFieldValidator>
                    <asp:ValidationSummary ID="ValidationSummary1" runat="server" DisplayMode="SingleParagraph"  Font-Bold="True" ValidationGroup="a" />
                </td>
            </tr>
            <tr>
                <td width="15%" valign="top"><asp:Label ID="Label8" runat="server" Text="Nội dung :" CssClass="titletext3"></asp:Label><asp:Label ID="Label10"
                        runat="server" ForeColor="Red" Text="*"></asp:Label></td>
                <td><asp:TextBox ID="tbxReportContent" runat="server" TextMode="MultiLine" Width="100%"></asp:TextBox>
                    </td>
            </tr>
            <tr>
                <td colspan="2" align="center"><asp:Button ID="btnSend" runat="server" Text="Gửi" Font-Bold="True" Width="80px" OnClick="btnSend_Click" ValidationGroup="a" CssClass="btn" /></td>
            </tr>
        </table>
    </asp:Panel></asp:Panel> 
</center>

<asp:Panel ID="pnlSmallAdvsList" runat="server" Width="100%" Visible="False"><uc3:tm_smallAdvList id="mySmallAdvList" runat="server" Visible="true"></uc3:tm_smallAdvList> 
</asp:Panel>
<asp:Panel ID="pnlSettings" runat="server" Visible="False" Width="100%">
    <table width="100%">
        <tr>
            <td style="width: 50%;" valign="middle">
                <asp:Label ID="lblStatus" runat="server" CssClass="titletext3" Text="Trạng thái"></asp:Label>
                <asp:DropDownList ID="ddlSetStatus" runat="server">
                </asp:DropDownList><asp:Button ID="btnSetStatus" runat="server" CssClass="btn" Font-Bold="True" OnClick="btnSetStatus_Click"
                    Text="Thiết lập" Width="100px" />
                &nbsp; &nbsp; &nbsp;
            </td>
            <td align="right" valign="middle">
            </td>
            <td align="right">
                <asp:Button ID="btnDelete" runat="server" CssClass="btn" Font-Bold="True" OnClick="btnDelete_Click"
                    Text="Xóa" Width="70px" OnClientClick="return confirm('Xóa rao vặt đã chọn ?')" /></td>
        </tr>
    </table>
</asp:Panel>
<center>
    <asp:Panel ID="pnlSearchSmallAdvs" runat="server" width="100%">
        <table width="100%" class="table">
            <tr>
                <td class="table" colspan="3">
                    &nbsp;</td>
            </tr>
            <tr>
                <td width="20%">
                </td>
                <td width="20%">
                </td>
                <td>
</td>
            </tr>
            <tr>
                <td width="20%">
                </td>
                <td width="20%">
                    <asp:Label ID="Label1" runat="server" CssClass="titletext3" Font-Bold="False" Text="Chủ đề :"></asp:Label></td>
                <td>
                    <asp:TextBox ID="tbxSubject2" runat="server" MaxLength="15" Width="200px"></asp:TextBox><asp:CheckBox ID="cbxSubject" runat="server" Text="Tìm từng từ" /></td>
            </tr>
            <tr>
                <td>
                </td>
                <td>
                    <asp:Label ID="Label11" runat="server" CssClass="titletext3" Font-Bold="False" Text="Thời gian đăng :"></asp:Label></td>
                <td>
                    <asp:TextBox ID="tbxFromDate" runat="server" Width="80px"></asp:TextBox><asp:HyperLink
                        ID="hlkFromDate" runat="server" ImageUrl="~/images/calendarAJ.png"></asp:HyperLink>
                    <asp:TextBox ID="tbxToDate" runat="server" Width="80px"></asp:TextBox><asp:HyperLink
                        ID="hlkToDate" runat="server" ImageUrl="~/images/calendarAJ.png"></asp:HyperLink>
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td>
                </td>
                <td>
                    <asp:Button ID="btnSearch" runat="server" CssClass="btn" Font-Bold="True" 
                        Text="Tìm kiếm" Width="90px" OnClick="btnSearch_Click" />
                    <asp:Button ID="btnclear" runat="server" CssClass="btn" Font-Bold="True" 
                        Text="Làm lại" Width="90px" OnClick="btnclear_Click" /></td>
            </tr>
        </table>
    </asp:Panel>
<asp:Label id="lblMessage" runat="server" CssClass="titletext3"></asp:Label>
<asp:Label id="lblDebugMessage" runat="server"></asp:Label></center>
